package cn.zn.dept.entity;

import cn.zn.base.bean.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zn-admin
 * @since 2021-06-25
 */
@TableName("SYS_CORP")
public class SysCorp extends BaseEntity<SysCorp> {

    /**
     * 名称
     */
    @TableField("CORP_NAME")
    private String corpName;

    /**
     * 板块id
     */
    @TableField("INDUSTRY_ID")
    private String industryId;

    @TableField("INDUSTRY_CODE")
    private String industryCode;

    /**
     * 板块
     */
    @TableField("INDUSTRY_NAME")
    private String industryName;

    /**
     * 编号
     */
    @TableField("CORP_CODE")
    private String corpCode;

    /**
     * 状态（0正常 1停用）
     */
    @TableField("STATUS")
    private String status;

    @TableField(exist = false)
    private List<SysCorp> children;

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getIndustryId() {
        return industryId;
    }

    public void setIndustryId(String industryId) {
        this.industryId = industryId;
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<SysCorp> getChildren() {
        return children;
    }

    public void setChildren(List<SysCorp> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "SysCorp{" +
                "corpName=" + corpName +
                ", industryId=" + industryId +
                ", industryName=" + industryName +
                ", corpCode=" + corpCode +
                ", status=" + status +
                "}";
    }
}
